import Vue from 'vue'
// 创建过滤器格式时间
Vue.filter('dateFormat', originTime => {
	const time = new Date(originTime)
	const y = time.getFullYear()
	const m = (time.getMonth() + 1 + '').padStart(2, '0')
	const d = (time.getDate() + '').padStart(2, '0')
	const hh = (time.getHours() + '').padStart(2, '0')
	const mm = (time.getMinutes() + '').padStart(2, '0')
	const ss = (time.getSeconds() + '').padStart(2, '0')
	return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
})
